package com.gengine.utils
{
	
	public class HTMLUtil extends Object
	{
		private static var delHtmlreg:RegExp = new RegExp("</?[^<>]+>", "gmi");
		
		public function HTMLUtil()
		{
		}
		
		public static function addColor(info:String, color:String) : String
		{
			return "<font color=\'" + color + "\'>" + info + "</font>";
		}
		
		public static function removeHtml(str:String) : String
		{
			if (str)
			{
				return str.replace(delHtmlreg, "");
			}
			return "";
		}
	}
}
